//package Chart;
//
//import java.awt.event.ActionEvent;
//import java.io.File;
//
//import javax.swing.AbstractAction;
//import javax.swing.JFileChooser;
//import javax.swing.JFrame;
//
////This action creates and shows a modal open-file dialog.
//@SuppressWarnings("serial")
//public class OpenFileAction extends AbstractAction {
//
//	JFrame frame;
//	JFileChooser chooser;
//	private String selectedPath;
//
//	public OpenFileAction(JFrame frame, JFileChooser chooser) {
//		super("Open...");
//		this.chooser = chooser;
//		this.frame = frame;
//	}
//
//	@Override
//	public void actionPerformed(ActionEvent e) {
//		// Show dialog; this method does not return until dialog is closed
//		chooser.showOpenDialog(frame);
//		// Adding a Filter to a File Chooser Dialog
//		// chooser.addChoosableFileFilter(new MyFilter());
//
//		// Get the selected file
//		selectedPath = chooser.getSelectedFile().getPath();
//	}
//
//	public void setSelectedPath(String selectedPath) {
//		this.selectedPath = selectedPath;
//	}
//
//	public String getSelectedPath() {
//		return selectedPath;
//	}
//};
//
//// This action creates and shows a modal save-file dialog.
//@SuppressWarnings("serial")
//class SaveFileAction extends AbstractAction {
//
//	JFrame jFrame;
//	JFileChooser chooser;
//
//	public SaveFileAction(JFrame jFrame, JFileChooser chooser) {
//		super("Save As...");
//		this.jFrame = jFrame;
//		this.chooser = chooser;
//	}
//
//	@Override
//	public void actionPerformed(ActionEvent arg0) {
//		// Show dialog; this method does not return until dialog is closed
//		chooser.showSaveDialog(jFrame);
//
//		// Get the selected file
//		File file = chooser.getSelectedFile();
//	}
//
//};